package com.ysx.student.zhangqingrong.com.ysx.day4;

/**
 * @author 张青荣
 * <p>
 * 求1到100之间相加的和
 */
public class Test3 {
    public static void main(String[] args) {

        printTable(9, 9);


    }

    private static void printTable(int a, int b) {

        for (int i = 1; i <= a; i++) {
            for (int z = 1; z <= a; z++) {

                int sum = i * z;
                System.out.print(i + "*" + z + "=" +sum + "\t");


            }
            System.out.println();


        }
    }
}


